<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDesignBodyImgTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('design_body_img', function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('d_id')->default(0)->comment('设计图id');
            $table->integer('g_id')->default(0)->comment('商品id');
            $table->string('color_space')->nullable()->comment('颜色值');
            $table->integer('img_id')->default(0)->comment('图片id');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
